package codechicken.wirelessredstone.core;

import net.minecraft.src.*;
import net.minecraft.src.forge.IUseItemFirst;

public abstract class ItemWirelessFreq extends Item implements IUseItemFirst
{
	public ItemWirelessFreq(int ID)
	{
		super(ID);
	}
	
	public boolean onItemUseFirst(ItemStack itemstack, EntityPlayer entityplayer, World world, int x, int y, int z, int side)
	{
		if(!entityplayer.isSneaking())
        {
            return false;
        } 
		else
        {
			CoreProxy.openItemWirelessGui(entityplayer);
            return true;
        }
	}
	
	public abstract void setItemFreq(int slot, ItemStack itemstack, int freq);
	
	public abstract int getItemFreq(ItemStack itemstack);
	
	public abstract String getGuiName();
}
